﻿using System;
using System.Collections.Generic;

namespace housingsafety.server.Models
{
    public class PlaceResidentFireInput
    {
        /// <summary>
        /// 是否整治核查工作
        /// </summary>
        public bool IsCheckWork { get; set; }
        public string PlaceName { get; set; }
        public string Location { get; set; }
        public string Householder { get; set; }
        public string Contact { get; set; }
        public int? Level { get; set; }
        public int? MaxPopulation { get; set; }
        public int? BuildingFloors { get; set; }
        /// <summary>
        /// 出租房间数
        /// </summary>
        public int? LeaseRooms { get; set; }
        /// <summary>
        /// 出租房间居住人数
        /// </summary>
        public int? LeaseRoomPeoples { get; set; }
        /// <summary>
        /// 电动自行车、电动平衡车及其蓄电池在房屋公共区域、疏散走道、楼梯间、安全出口或房间内停放、充电
        /// </summary>
        public bool UseElectricBicycle { get; set; }
        /// <summary>
        /// 出租房屋的公共区域、租住房间内、地下室、半地下室使用瓶装液化石油气
        /// </summary>
        public bool UseBottledLiquefiedGas { get; set; }
        /// <summary>
        /// 疏散走道、楼梯间、安全出口处堆放物品影响人员疏散
        /// </summary>
        public bool UseStackedItems { get; set; }
        /// <summary>
        /// 外窗、疏散走道安装防盗网、广告牌、铁栅栏等影响逃生和灭火救援的障碍物
        /// </summary>
        public bool UseBurglarMesh { get; set; }
        /// <summary>
        /// 供人员疏散的场院、内院、天井设置不利于烟气扩散的顶棚、雨棚等
        /// </summary>
        public bool UseCeiling { get; set; }
        /// <summary>
        /// 居住区域与生产、经营、存储区域未使用实体砖墙、防火门等进行完全分隔，同时居住区域未设置直通室外的独立疏散楼梯、安全出口
        /// </summary>
        public bool IsCompletelyIsolated { get; set; }
        /// <summary>
        /// 屋顶、围护结构、房间隔墙使用易燃可燃夹芯彩钢板搭建，疏散通道使用易燃可燃材料装修
        /// </summary>
        public bool UseFlammableMaterials { get; set; }
        /// <summary>
        /// 在供电设施上擅自接线用电，擅自在导线上接用电器设备
        /// </summary>
        public bool UnauthorizedElectricalConnect { get; set; }
        /// <summary>
        /// 电动自行车集中充电设施未按照农村地区电动自行车集中充电设施建设指引要求建设或整改
        /// </summary>
        public bool ChargingFacilitiesNoStandard { get; set; }
        /// <summary>
        /// 出租房屋3层及以上出租住人，且不满足2部疏散楼梯和首层2个安全出口
        /// </summary>
        public bool NotEnoughExits { get; set; }
        public List<string> UseElectricBicyclePhotos { get; set; }
        public List<string> UseBottledLiquefiedGasPhotos { get; set; }
        public List<string> UseStackedItemsPhotos { get; set; }
        public List<string> UseBurglarMeshPhotos { get; set; }
        public List<string> UseCeilingPhotos { get; set; }
        public List<string> IsCompletelyIsolatedPhotos { get; set; }
        public List<string> UseFlammableMaterialsPhotos { get; set; }
        public List<string> UnauthorizedElectricalConnectPhotos { get; set; }
        public List<string> ChargingFacilitiesNoStandardPhotos { get; set; }
        public List<string> NotEnoughExitsPhotos { get; set; }
        public string HouseholderSign { get; set; }
        public string FireInspectorSign { get; set; }
        public int? EscapeStairsNum { get; set; }
        public int? FirstExitNum { get; set; }
        public double? FirstFloorArea { get; set; }
        public int? SmokeAlarmNum { get; set; }
        public int? SimpleSprinklerSystemNum { get; set; }
        public bool UseFlammableInsulationMaterials { get; set; }
        public bool UseFlammableDangerousGoods { get; set; }
        public bool AboveThreeFloorSelf { get; set; }
        public bool UseIndependentSmokeAlarm { get; set; }
        public bool AboveThreeFloorsEscape { get; set; }
        public List<string> UseFlammableInsulationMaterialsPhotos { get; set; }
        public List<string> UseFlammableDangerousGoodsPhotos { get; set; }
        public List<string> AboveThreeFloorSelfPhotos { get; set; }
        public List<string> UseIndependentSmokeAlarmPhotos { get; set; }
        public List<string> AboveThreeFloorsEscapePhotos { get; set; }

        public string CheckMind { get; set; }

        public List<string> CheckPhotos { get; set; }
    }

    public class PlaceResidentIntegrationInput
    {
        public string PlaceName { get; set; }
        public string Location { get; set; }
        public string Householder { get; set; }
        public string Contact { get; set; }
        public bool ChongDianVillage { get; set; }
        public int? Level { get; set; }
        public int? RealPopulation { get; set; }
        public int? RealPopulationAbove3Floors { get; set; }
        /// <summary>
        /// 治安隐患问题
        /// </summary>
        public string Security { get; set; }
        /// <summary>
        /// 治安隐患问题整治措施
        /// </summary>
        public string SecurityRemediation { get; set; }
        /// <summary>
        /// 违法建设隐患
        /// </summary>
        public string IllegalConstruction { get; set; }
        /// <summary>
        /// 违法建设隐患问题整治措施
        /// </summary>
        public string IllegalConstructionRemediation { get; set; }
        public string IntegrationInspectorSign { get; set; }

        public string BuildingAddress { get; set; }
        public string ActualPerson { get; set; }
        public string ActualPersonPhone { get; set; }
        public int? AboveThreeFloorMaxPopulation { get; set; }
    }

    public class ResidentIntegrationSecurity
    {
        public List<SecurityCore> List { get; set; }
    }

    public class SecurityCore
    {
        public bool Checked { get; set; }

        public string Code { get; set; }

        public string Title { get; set; }
    }
}
